<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <canvas id="c" width="600" height="400" style="border: 1px solid #ccc"></canvas>

        <script>
            const cnv = document.getElementById('c')
            const ctx = cnv.getContext('2d')

            ctx.moveTo(300, 200)
            ctx.bezierCurveTo(350, 150, 400, 200, 300, 250)
            ctx.bezierCurveTo(200, 200, 250, 150, 300, 200)

            ctx.closePath()
            ctx.stroke()
        </script>

    </body>
</html>
